home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts45-11
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: C code in a C++ app
- Date: Wed, 06 Mar 96 03:34:10 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4hj13b$cnq@sam.inforamp.net>
- References: <4hbddg$899@sam.inforamp.net> <4hc1pp$1eu@news1.usa.pipeline.com>
- NNTP-Posting-Host: ts45-11.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4hc1pp$1eu@news1.usa.pipeline.com>,
- grantp@usa.pipeline.com(Pete) wrote:
- >Unfortunately, this answer is not to the question asked. (Aside from
- >possibly being wrong). The _export keyword is not used in MSVC++4.0,
- >which, if I remember correctly, was specified in the original post. But
- >it's a moot point since it is used only in DLLs, which is not the subject
- >of the question.
- >
- >The correct answer is to leave the C code with extension .c, omit the
- >inclusion of <stdafx.h>, and change the compiler option switches
- >pertaining to precompiled headers. The use of extern "C", of course, is
- >appropriate.
-
- If you would have read the post carefully, you'd have known that I was
- suggestion that he use the...
- extern "C"
- .. and not the _export command. Obviously you were to anxious to show off
- your knowledge of C++ and ended up making yourself look dumb.
-
- Agrivar
-